//
//  RACVC.m
//  RACLearning
//
//  Created by 李阳 on 2018/6/7.
//  Copyright © 2018年 李阳. All rights reserved.
//

#import "RACVC.h"

@interface RACVC ()

@end

@implementation RACVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    [self setup];
}

- (void)buttonClicked
{
    
}



- (void)setup
{
    UIButton *btn = [[UIButton alloc]initWithFrame:(CGRect){50,100,100,50}];
    [btn setTitle:@"按钮" forState:UIControlStateNormal];
    [btn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [btn addTarget:self action:@selector(buttonClicked) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
